package wechat.handler.request.template;

import wechat.handler.bean.request.template.SetIndustryBean;
import wechat.handler.bean.request.template.TemplateInfoBean;

public interface ITemplate {
	/**
	 * 设置所属行业
	 * @param setIndustryBean
	 * @return
	 * @throws Exception
	 */
	public boolean setIndustry(SetIndustryBean setIndustryBean) throws Exception;
	/**
	 * 指定appid设置所属行业
	 * @param appid
	 * @param setIndustryBean
	 * @return
	 * @throws Exception
	 */
	public boolean setIndustry(String appid,SetIndustryBean setIndustryBean) throws Exception;
	
	/**
	 * 添加模板
	 * @param templateIdShort
	 * @return
	 * @throws Exception
	 */
	public String addTemplate(String templateIdShort) throws Exception ;
	/**
	 * 指定appid添加模板
	 * @param appid
	 * @param templateIdShort
	 * @return
	 * @throws Exception
	 */
	public String addTemplate(String appid,String templateIdShort) throws Exception;
	
	/**
	 * 发送模板
	 * @param templateIdShort
	 * @return
	 * @throws Exception
	 */
	public boolean sendTemplate(TemplateInfoBean templateInfoBase) throws Exception ;
	
	/**
	 * 指定appid发送模板
	 * @param appid
	 * @param templateInfoBase
	 * @return
	 * @throws Exception
	 */
	public boolean sendTemplate(String appid,TemplateInfoBean templateInfoBase) throws Exception;
}
